projects
/
project
/
fstools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408c2cc
)
jffs2reset: print deprecation message
author
John Crispin
<
[email protected]
>
Sat, 2 Nov 2024 19:55:53 +0000
(20:55 +0100)
committer
John Crispin
<
[email protected]
>
Sat, 2 Nov 2024 20:23:54 +0000
(21:23 +0100)
Signed-off-by: John Crispin <
[email protected]
>
jffs2reset.c
patch
|
blob
|
history
diff --git
a/jffs2reset.c
b/jffs2reset.c
index acff913409da7a7dd271cd16c6f76848905fdc53..0985b3a61548b902fedc35989188e14261ed64eb 100644
(file)
--- a/
jffs2reset.c
+++ b/
jffs2reset.c
@@
-25,6
+25,7
@@
#include <string.h>
#include <unistd.h>
#include <getopt.h>
+#include <libgen.h>
#include <mtd/ubi-user.h>
@@
-103,6
+104,10
@@
int main(int argc, char **argv)
{
struct volume *v;
int ch, yes = 0, reset = 0, keep = 0;
+
+ if (!strcmp(basename(argv[0]), "jffs2reset"))
+ ULOG_ERR("jffs2reset will be deprected, please use factoryreset going forward\n");
+
while ((ch = getopt(argc, argv, "yrk")) != -1) {
switch(ch) {
case 'y':